#pragma once
#include "DatePicker.h"
#include "HPFile.h"
#include "config.h"

// CViewOver view

class CViewOver : public CView
{
	DECLARE_DYNCREATE(CViewOver)

protected:
	CViewOver();           // protected constructor used by dynamic creation
	virtual ~CViewOver();

public:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
#ifdef _DEBUG
	virtual void AssertValid() const;
#ifndef _WIN32_WCE
	virtual void Dump(CDumpContext& dc) const;
#endif
#endif

public:
	connection m_cntMatch;
	void onMatch(int id,int kind,void* pd);


protected:
	CDatePickerControl	m_wndDatePicker;
	CXTPToolBar			m_wndToolbar;
	CXTPReportControl	m_wndReport;

	BOOL				m_bCaliShow;
	void RecalLayout(int cx, int cy);


	DECLARE_XTP_SINK(CViewOver, m_Sink);
	void OnEvent_DatePicker(XTP_NOTIFY_CODE Event, WPARAM wParam, LPARAM lParam);
protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS* lpncsp);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnUpdates(CCmdUI* pCUI);
	afx_msg BOOL OnExcutes(UINT nID, NMHDR* pNMH, LRESULT* lResult);
};


